package cn.fxxk.modular.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author dengtongzi
 * @since 2021-03-25
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("fxxk_account")
public class FxxkAccount extends Model<FxxkAccount> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * fxxk_user表的id
     */
    @TableField("fxxk_user_id")
    private String fxxkUserId;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;

    /**
     * 电话
     */
    @TableField("tel")
    private String tel;

    /**
     * 余额
     */
    @TableField("balance")
    private BigDecimal balance;

    /**
     * 默认支付账户
     */
    @TableField("payment_account")
    private String paymentAccount;

    /**
     * 是否删除
     */
    @TableField("is_del")
    private Integer isDel;

    @TableField("create_by")
    private String createBy;

    @TableField("create_time")
    private Integer createTime;

    @TableField("update_by")
    private String updateBy;

    @TableField("update_time")
    private Integer updateTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
